﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Data.SqlClient;
using System.Windows.Forms;
using quanlycd3lop.BL;

namespace quanlycd3lop.GUI
{
    public partial class frm_QLDM : Form
    {
        public frm_QLDM()
        {
            InitializeComponent();
        }
        quanlycd3lop.BL.cl_danhmuc cldm;

        private void frm_QLDM_Load(object sender, EventArgs e)
        {
            cldm = new quanlycd3lop.BL.cl_danhmuc(this);
            cldm.hienthi(null);
        }

        private void bt_them_Click(object sender, EventArgs e)
        {
            cldm.them();
            dataGridView1.Refresh();
        }

        private void bt_xoa_Click(object sender, EventArgs e)
        {
            cldm.xoa();
            dataGridView1.Refresh();
        }

        private void bt_sua_Click(object sender, EventArgs e)
        {
            cldm.sua();
            dataGridView1.Refresh();
        }
    }
}
